﻿using System;
using System.Collections.Generic;
using System.Text;
using OpenAuth.Repository.Core;


namespace OpenAuth.Repository.Domain
{
    /// <summary>
    /// 预约信息查询（查询患者预约信息）
    /// </summary>
    public class CYYGH009 : Entity
    {
        /// <summary>
        /// 预约序号
        /// </summary>
        private decimal _yyxh;
        public decimal yyxh { get => Convert.ToInt32(_yyxh); set => _yyxh = value; }
        //public string yyxh;
        /// <summary>
        /// 科室代码
        /// </summary>
        public string ksdm { get; set; }
        /// <summary>
        /// 科室名称
        /// </summary>
        public string ksmc { get; set; }
        /// <summary>
        /// 医生代码
        /// </summary>
        public string ysdm { get; set; }
        /// <summary>
        /// 医生名称
        /// </summary>
        public string ysmc { get; set; }
        /// <summary>
        /// 挂号日期
        /// </summary>
        public string ghrq { get; set; }
        /// <summary>
        /// 预约日期
        /// </summary>
        public string yyrq { get; set; }
        /// <summary>
        /// 预约号序
        /// </summary>
        public int yyhx { get; set; }
        /// <summary>
        /// 挂号费
        /// </summary>
        private decimal _ghf;
        public decimal ghf { get => System.Decimal.Round(_ghf, 2); set => _ghf = value; }
        /// <summary>
        /// 应收金额
        /// </summary>
        private decimal _ysje;
        public decimal ysje { get => System.Decimal.Round(_ysje, 2); set => _ysje = value; }
        /// <summary>
        /// 总金额
        /// </summary>
        private decimal _zje;
        public decimal zje { get => System.Decimal.Round(_zje, 2); set => _zje = value; }
        /// <summary>
        /// 支付方式（zzfs）
        /// </summary>
        public Int16 paytype { get; set; }
        /// <summary>
        /// 记录状态
        /// </summary>
        public Int16 jlzt { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        public Int16 zfzt { get; set; }
        /// <summary>
        /// 支付记录状态
        /// </summary>
        public Int16 zfjlzt { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string memo { get; set; }
        /// <summary>
        /// 号序时间段
        /// </summary>
        public string hxsjd { get; set; }
        /// <summary>
        /// 预约就诊地址
        /// </summary>
        public string jzdz { get; set; }
        /// <summary>
        /// 排班序号
        /// </summary>
        //private decimal _pbxh;
        //public decimal pbxh { get => Convert.ToInt32(_pbxh); set => _pbxh = value; }
        public string pbxh;
        /// <summary>
        /// 类型
        /// </summary>
        public string zzlx { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string zzlxmc { get; set; }
        /// <summary>
        /// 当前操作员预约
        /// </summary>
        public string dqczybz { get; set; }
        /// <summary>
        /// 预约来源
        /// </summary>
        public string yyly { get; set; }
        /// <summary>
        /// 预约卡号（bxh）
        /// </summary>
        public string cardno { get; set; }
        /// <summary>
        /// 预约联系电话
        /// </summary>
        public string lxdh { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string zjhm { get; set; }
        /// <summary>
        /// 门诊patid
        /// </summary>
        //private decimal _patid;
        //public decimal patid { get => Convert.ToInt32(_patid); set => _patid = value;  }
        public string patid;
        /// <summary>
        /// 治疗费
        /// </summary>
        private decimal _zlf;
        public decimal zlf { get => System.Decimal.Round(_zlf, 2); set => _zlf = value; }
        /// <summary>
        /// 号序锁定
        /// </summary>
        public string hxsd { get; set; }
        /// <summary>
        /// 备注2
        /// </summary>
        public string memo2 { get; set; }
        /// <summary>
        /// 代码
        /// </summary>
        public string yqdm { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string yqmc { get; set; }
    }
}
